﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ls.Utils
{
    public static partial class CommonHelper
    {
        public static string ToBase64String(this Guid  g) {
            var bytes = g.ToByteArray();
            return Convert.ToBase64String(bytes);
        }
        public static string ToBase64StringTrimEq(this Guid g)
        {
            var bytes = g.ToByteArray();
            return Convert.ToBase64String(bytes).Trim('=');
        }
    }
}
